package experiment.e05.code.ch04.v3;

import experiment.e05.code.ch04.v0.Point;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/10/13 16:39
 * @package experiment.e05.code.ch04.v3
 * @description 文件说明
 */

public class Circle implements Shape {

    // 私有变量
    private double radius;
    private Point point;

    // 构造方法
    public Circle() {
    }

    public Circle(double radius, Point point) {
        this.radius = radius;
        this.point = point;
    }

    // get && set
    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public Point getPoint() {
        return point;
    }

    public void setPoint(Point point) {
        this.point = point;
    }

    // 实现方法
    @Override
    public double getArea() {
        return 0;
    }

    @Override
    public double getC() {
        return Math.PI * 2 * radius;
    }

    // toString()
    @Override
    public String toString() {
        return "Circle:{" + "radius=" + radius + ", " + point + '}';
    }
}
